
import React from 'react';
import AuthComponent from '../AuthComponent.js';

class NotFound extends AuthComponent {
    constructor(props) {
        super(props);
        let path = this.props.match.path;
        if(path === '/') {
            this.props.history.push('/admin');
        }
    }
    render() {
        return (
            <div>
                404 not found
            </div>
        )
    }
}

export default NotFound;